import request from "../../utils/psychologyAI"

export function psychology(url,query) {
	return request({
		url: "/chat-messages",
		method: "POST",
		data: {
			"inputs": {
				"files": {
					"type": "image",
					"transfer_method": "remote_url", //  图片改成必填之后会报错files字段为空  不设置成必填虽然可以运行但是ai给出的答案是乱答的
					"url": url
					//"transfer_method": "local_file",
					//"upload_file_id": "7c1a6627-2c8c-43b0-9962-73de19f4acf1"
				}
			},
			"query": query,
			"response_mode": "blocking",
			"conversation_id": "",
			"user": "abc-123"
		},
	})
}